package com.xinchao.service;

import com.xinchao.exception.ServiceException;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Map;

/**
 * 文件Service
 *
 * @author dxy
 * @date 2018/9/28 17:16
 */
public interface FileService {
	/**
	 * 上传文件
	 *
	 * @param files        MultipartFile
	 * @param cloudFileDir 云文件目录
	 * @return Map<String,Object>
	 * @throws IOException
	 * @throws ServiceException
	 */
	Map<String, Object> uploadFile(MultipartFile files, String cloudFileDir) throws IOException, ServiceException;
}
